<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<title>新增体检库</title>
		<%@ include file="/commons/static.jsp"%>
	    <link rel="stylesheet" type="text/css" href="${ctx}/dep/css/easydropdown.css" />
		<link rel="stylesheet" type="text/css" href="${ctx}/dep/datetimepicker/css/bootstrap-datetimepicker.css" />
		
		<style type="text/css">
			i.family_i {
			    background: #57b5e3;
			    width: 24px;
			    height: 24px;
			    color: #fff;
			    cursor: pointer;
			    border-radius: 3px;
			}
			i.cunt_1 {
			    font-size: 14px;
			    padding-left: 6px;
			    padding-top: 5px;
			}
			i.cunt_close {
			    font-size: 14px;
			    padding-top: 5px;
			    margin-top: 4px;
			    text-align: center;
			}
			i.family_i_1 {
			    background: #cc324b;
			    width: 24px;
			    height: 24px;
			    color: #fff;
			    cursor: pointer;
			    border-radius: 3px;
			}
		</style>
		
	</head>
	<body>
				<div class="wrapper">
					<!-- 面包屑导航 -->
					<div class="page-breadcrumbs">
						<ul class="breadcrumb">
							<li>
								<i class="fa fa-home"></i>
								<a href="#">首页</a>
							</li>
							<li class="active">
								<a href="#">业务配置管理</a>
							</li>
							<li class="active">
								体检库配置
							</li>

						</ul>
					</div>
					<!-- /面包屑导航-->
					<div class="page-body">
						<div class="row">
							<div class="col-xs-12 col-md-12">
								<div class="widget">
									<div class="widget-body" style="overflow:hidden">
										<div class="col-lg-12 col-sm-12 col-xs-12 ">
											<div class="widget">
											
											<input id="from" value="${from}"  style="display: none"/>
											
											<form class="form-horizontal form-bordered required-validate" id="organizationAddForm"  role="form" onsubmit="return validateOrganizationAddForm(this)">
												<div class="bancgud">
													<div class="formfont">基础信息</div>
														
														<input value="${data.id}" type="text" name="id" style="display: none"/>
														
														<div class="form-group">
															<label class="col-sm-2 control-label no-padding-right">体检库名称<span class="help-inline"><font color="red">*</font> </span></label>
															<div class="col-sm-8">
																<input value="${data.name}" type="text" class="form-control" name="name" placeholder="请输入体检库名称" data-bv-notempty="true"
																	data-bv-notempty-message="体检库名称不能为空！">
															</div>
														</div>
														<div class="form-group">
															<label class="col-sm-2 control-label no-padding-right">体检机构名称<span class="help-inline"><font color="red">*</font> </span></label>
															<div class="col-sm-8">
																<input value="${data.institutionsName}" type="text" class="form-control" name=institutionsName placeholder="请输入体检机构名称" data-bv-notempty="true"
																	data-bv-notempty-message="体检机构名称不能为空！">
															</div>
														</div>
														
														
														<div class="form-group formbdcenb">
															<label class="col-sm-2 control-label no-padding-right">科室</label>
															<div class="col-sm-6 add_depart">
															
															<c:if test="${from!='check'}">
																<div class="sc_1">
																	<i class="departAdd fa fa-plus idd cunt_1 family_i"></i> 
																</div>
															</c:if>
																
																<c:forEach items="${data.depart}" var="d" varStatus="status">
																	<div class="form-group">
																		<div class="col-sm-8">
																			<input placeholder="请输入科室名称" name="depart[${status.index}].name" value="${d.name}" type="text" class="form-control"/>
																		</div>
																		<c:if test="${from!='check'}">
																			<div class="col-sm-1"><i class="fa fa-minus cunt_close family_i_1"></i></div>
																		</c:if>
																	</div>
																	
																</c:forEach>
																
															</div>
														</div>
														
														<input type="text" style="display: none;" value="${fn:length(data.depart)}" id="departNum"/>
														
														
														<div class="form-group">
															<label class="col-sm-2 control-label no-padding-right">加盟商所在区域</label>
															<div class="col-sm-2">
																<select data-selected="${data.provinces}" class="form-control" id="s_province" name="provinces" style="width: 180px;" >
																</select>
															</div>
															<div class="col-sm-2">
																<select data-selected="${data.city}" class="form-control" id="s_city" name="city" style="width: 180px;">
																</select>
															</div>&nbsp;
															<div class="col-sm-2">
																<select data-selected="${data.county}" id="s_county" class="colsm form-control" name="county" style="width: 180px;">
																</select>
															</div>
														</div>
														<div class="form-group">
															<div class="col-sm-8 col-sm-offset-2">
																<input value="${data.address}" type="text" class="form-control fl" name="address" placeholder="请输入具体地址">
															</div>
														</div>
														<div class="form-group">
															<label class="col-sm-2 control-label no-padding-right">体检库描述</label>
															<div class="col-sm-8">
																<textarea name="descrpiton">${data.descrpiton}</textarea>
															</div>
														</div>
												
												</div>

												<div class="col-sm-8  col-xs-offset-3 btn-bottm" style="padding-top:25px">
													<input type="submit" class=" btn btn-darkorange  col-sm-2" value="确认">
													<a class=" btn btn-active col-sm-2 col-xs-offset-3" href="${ctx}/medical/organization">取消</a>
												</div>
												
												</form>
												
											</div>
									</div>

								</div>

							</div>

						</div>
					</div>

				</div>
			</div>

			<script type="text/javascript" src="${ctx}/home/institutions/organization_add.js"></script>
			
	</body>

</html>